﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Text.RegularExpressions;
using System.Drawing;
using System.Configuration;
using System.Web.Security;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string Passwd=FormsAuthentication.HashPasswordForStoringInConfigFile("888888", "MD5");
        SqlConnection sqlcon = null;
        SqlCommand sqlcmd = null;
        string cmd = "";
        try
        {
            sqlcon = new SqlConnection(ConfigurationManager.ConnectionStrings["testLottery"].ConnectionString);
            sqlcon.Open();
            cmd = "update Member set password='" + Passwd +"'";
            sqlcmd = new SqlCommand(cmd, sqlcon);
            sqlcmd.ExecuteNonQuery();
        }
        catch (SqlException sqle)
        {
            ;
        }
        finally
        {
            sqlcon.Close();
        }
    }
}